import Vue from 'vue'
import Router from 'vue-router'
import Min from './views/Min.vue'
import Home from './views/Home.vue'
import Me from './views/Me.vue'
import Kingwine from './views/Hotel/Kingwine.vue'
import Jingjiu from './views/Hotel/Jingjiu.vue'
import Hotel from './views/Home/Hotel.vue'
import Attractions from './views/Home/Attractions.vue'
// import Specialty from './views/Home/Specialty.vue'
import FreeTour from './views/Home/FreeTour.vue'
import OldTour from './views/Home/OldTour.vue'
import NewPlay from './views/Home/NewPlay.vue'
import Strategy from './views/Home/Strategy.vue'
import SignDetail from './views/Home/SignDetail.vue'
import ProductDetail from './views/Hotel/ProductDetail.vue'
import Recommend from './views/Recommend.vue'
import Hotsearch from './views/Hotsearch.vue'
import Order from './views/Home/Order.vue'
import SelectLinkMan from './views/Home/SelectLinkMan.vue'
import EditLinkManA from './views/Home/EditLinkManA.vue'
import OrderList from './views/User/OrderList.vue'
import UserOrderdetails from './views/User/UserOrderdetails.vue'
import Returns from './views/User/Returns.vue'
import ExcitingActivity from './views/Home/ExcitingActivity.vue'
import Profile from './views/Me/Profile.vue'
import EditNickName from './views/Me/EditNickName.vue'
import ScoreList from './views/Me/ScoreList.vue'
import AddressList from './views/Me/AddressList.vue'
import LinkMan from './views/Me/LinkMan.vue'
import Favorite from './views/Me/Favorite.vue'
import increaseaddress from './views/Me/EditLinkMan.vue'
import BindTel from './views/Me/BindTel.vue'
import Coupon from './views/Me/Coupon.vue'
import RefundList from './views/Me/RefundList.vue'
// 定位
import Positioning from './views/Home/Component/Positioning.vue'
import traffic from './views/Home/traffic.vue'
import Externallink from './views/Home/Externallink.vue'
import Service from './views/Home/Service.vue'
import Result from './views/Home/Result.vue'

import ScenicHome from './views/Scenic/ScenicHome.vue'
import Product from './views/Scenic/Product.vue'
import Vdetails from './views/Scenic/Vdetails.vue'
import Ordersynthesis from './views/Scenic/Ordersynthesis.vue' // 景区订单页
import Hotelorderpage from './views/Scenic/Hotelorderpage.vue' // 酒店订单页
import Specialorder from './views/Scenic/Specialorder.vue' // 特产订单页
import Highqualityline from './views/Scenic/Highqualityline.vue' // 精品线路
import Food from './views/Food/food.vue'
import FoodDetails from './views/Food/foodDetails.vue'
import shopping from './views/shopping/shopping.vue'
import ShoppingDetails from './views/shopping/shoppingDetails.vue'

import Language from './views/Language/Language.vue'
import Nextstop from './views/Nextstop/Nextstop.vue'
import Meraiders from './views/Raiders/Meraiders.vue'
import Raiders from './views/Raiders/Raiders.vue'
import RaidersDetails from './views/Raiders/RaidersDetails.vue'
import UploadRaiders from './views/Raiders/UploadRaiders.vue'
import Complaint from './views/Complaint/Complaint.vue'
import OnlineUpload from './views/Complaint/OnlineUpload.vue'
import Onlinecomplaint from './views/Complaint/Onlinecomplaint.vue'
import complaintschedule from './views/Complaint/complaintschedule.vue'

import Hotelorders from './views/Hotel/Hotelorders.vue'
import Boutique from './views/Boutique/Boutique.vue'
import Boutiquedetails from './views/Boutique/Boutiquedetails.vue'
import BoutiqueOrder from './views/Boutique/BoutiqueOrder.vue'
import Specialty from './views/specialty/Specialty.vue'
import Specialtydetails from './views/specialty/Specialtydetails.vue'
import Orderdetails from './views/specialty/Orderdetails.vue'

import Popular from './views/Onecardtour/Popular.vue'
import qinzixing from './views/Onecardtour/qinzixing.vue'
import haohaoxing from './views/Onecardtour/haohaoxing.vue'
import Foodlist from './views/Onecardtour/Foodlist.vue'
import Onecardtour from './views/Onecardtour/Onecardtour.vue'
import Onecardtourdetails from './views/Onecardtour/Onecardtourdetails.vue'
import list from './views/Onecardtour/list.vue'

import weather from './views/weather/weather.vue'
import weatherdetails from './views/weather/weatherdetails.vue'

import Passwordlogin from './views/Login/Passwordlogin.vue'
import Phonelogin from './views/Login/Phonelogin.vue'
import BindCellphone from './views/Login/BindCellphone.vue'

import Income from './views/Income/Income.vue'
import Withdraw from './views/Withdraw/Withdraw.vue'
import IncomeDetail from './views/Income/IncomeDetail.vue'
import Authentication from './views/Authentication/Authentication.vue'
import CouponList from './views/CouponList/CouponList.vue'
import CouponOrder from './views/CouponList/CouponOrder.vue'

import Activityorder from './views/Scenic/Activityorder.vue' // 文艺演出订单页
Vue.use(Router)
export default new Router({
    // mode: 'history',   这个history 模式 虽然美观，但是这个需要前后台配置   打包后才能够打开， 不然会影响到你的页面路径找不到页面直径报空白
    // base: process.env.BASE_URL,
    // linkActiveClass:'active',
    routes: [{ // 首页
        path: '/',
        name: 'home',
        component: Home
    },
    { // 我的
        path: '/me',
        name: 'me',
        component: Me
    },
    { // 导航栏
        path: '/min',
        name: 'min',
        component: Min
    },
    { // 酒店套餐
        path: '/Hotel/kingwine',
        name: 'kingwine',
        component: Kingwine,
        meta: {
            keepAlive: true // 是否需要被缓存
        }
    },
    { // 景酒套餐
        path: '/Hotel/Jingjiu',
        name: 'Jingjiu',
        component: Jingjiu
    },
    { // 酒店民宿
        path: '/Home/hotel',
        name: 'hotel',
        component: Hotel
    },
    { // 景点门票
        path: '/Home/attractions',
        name: 'attractions',
        component: Attractions
    },
    // {//特产
    //     path: '/Home/specialty',
    //     name: 'specialty',
    //     component: Specialty,
    // },
    { // 自由行
        path: '/Home/freeTour',
        name: 'freeTour',
        component: FreeTour
    },
    { // 跟团游
        path: '/Home/oldTour',
        name: 'oldTour',
        component: OldTour
    },
    { // 新玩法  目前没有页面匹配
        path: '/Home/newPlay',
        name: 'newPlay',
        component: NewPlay
    },
    { // 游记
        path: '/Home/strategy',
        name: 'strategy',
        component: Strategy
    },
    { // 商品详情
        path: '/Home/signDetail', // 几乎不用
        name: 'signDetail',
        component: SignDetail
    },
    { // 酒店详情
        path: '/Hotel/productDetail',
        name: 'productDetail',
        component: ProductDetail
    },
    { // 推荐
        path: '/recommend',
        name: 'recommend',
        component: Recommend
    },
    { // 热搜
        path: '/hotsearch',
        name: 'hotsearch',
        component: Hotsearch
    },
    { // 提交订单
        path: '/Home/order',
        name: 'order',
        component: Order
    },
    { // 取票人
        path: '/Home/selectLinkMan',
        name: 'selectLinkMan',
        component: SelectLinkMan
    },
    { // 增加联系人
        path: '/Home/editLinkManA',
        name: 'editLinkManA',
        component: EditLinkManA,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 订单列表
        path: '/User/orderList',
        name: 'orderList',
        component: OrderList,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 订单详情
        path: '/User/UserOrderdetails',
        name: 'UserOrderdetails',
        component: UserOrderdetails
    },
    { // 退货
        path: '/User/Returns',
        name: 'Returns',
        component: Returns
    },
    { // 活动日历
        path: '/Home/excitingActivity',
        name: 'excitingActivity',
        component: ExcitingActivity
    },
    { // 我的资料
        path: '/Me/profile',
        name: 'profile',
        component: Profile,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 修改昵称、邮箱
        path: '/Me/editNickName',
        name: 'editNickName',
        component: EditNickName,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 积分
        path: '/Me/scoreList',
        name: 'scoreList',
        component: ScoreList,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 收获地址
        path: '/Me/addressList',
        name: 'addressList',
        component: AddressList,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 常用联系人
        path: '/Me/linkMan',
        name: 'linkMan',
        component: LinkMan,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 收藏
        path: '/Me/favorite',
        name: 'favorite',
        component: Favorite,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 添加收货地址
        path: '/Me/editLinkMan',
        name: 'editLinkMan',
        component: increaseaddress,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 绑定手机号码
        path: '/Me/bindTel',
        name: 'bindTel',
        component: BindTel,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 卡卷
        path: '/Me/coupon',
        name: 'coupon',
        component: Coupon
    },
    { // 退款/售后
        path: '/Me/refundList',
        name: 'refundList',
        component: RefundList,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 定位
        path: '/Home/Component/positioning',
        name: 'positioning',
        component: Positioning
    },
    { // 景区列表
        path: '/Scenic/scenichome',
        name: 'scenichome',
        component: ScenicHome,
        meta: {
            keepAlive: true // 是否需要被缓存
        }
    },
    { // 景区详情
        path: '/Scenic/product',
        name: 'product',
        component: Product

    },
    { // 景区订单详情
        path: '/Scenic/vdetails',
        name: 'vdetails',
        component: Vdetails
    },

    { // 公共交通
        path: '/Home/traffic',
        name: 'traffic',
        component: traffic
    },
    { // 公共交通外链
        path: '/Home/Externallink',
        name: 'Externallink',
        component: Externallink
    },

    { // 美食
        path: '/food/food',
        name: 'food',
        component: Food
    },
    { // 购物
        path: '/shopping/shopping',
        name: 'shopping',
        component: shopping
    },
    { // 语言导览
        path: '/language/language',
        name: 'language',
        component: Language
    },
    { // 美食详情
        path: '/Food/foodDetails',
        name: 'foodDetails',
        component: FoodDetails

    },
    { // 购物详情
        path: '/shopping/shoppingDetails',
        name: 'shoppingDetails',
        component: ShoppingDetails

    },
    { // 下一站
        path: '/Nextstop/nextstop',
        name: 'nextstop',
        component: Nextstop
    },
    { // 精彩攻略
        path: '/Raiders/Raiders',
        name: 'Raiders',
        component: Raiders

    },
    { // 我的攻略
        path: '/Raiders/Meraiders',
        name: 'Meraiders',
        component: Meraiders
    },
    { // 攻略详情
        path: '/Raiders/RaidersDetails',
        name: 'RaidersDetails',
        component: RaidersDetails

    },
    { // 上传攻略
        path: '/Raiders/UploadRaiders',
        name: 'UploadRaiders',
        component: UploadRaiders
    },
    { // 投诉
        path: '/Complaint/Complaint',
        name: 'Complaint',
        component: Complaint,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 在线投诉
        path: '/Complaint/OnlineUpload',
        name: 'OnlineUpload',
        component: OnlineUpload,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 我的投诉
        path: '/Complaint/Onlinecomplaint',
        name: 'Onlinecomplaint',
        component: Onlinecomplaint,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 投诉进度
        path: '/Complaint/complaintschedule',
        name: 'complaintschedule',
        component: complaintschedule,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 酒店订单
        path: '/Hotel/hotelorders',
        name: 'hotelorders',
        component: Hotelorders
    },
    { // 精品路线
        path: '/Boutique/Boutique',
        name: 'Boutique',
        component: Boutique
    },
    { // 精品详情
        path: '/Boutique/Boutiquedetails',
        name: 'Boutiquedetails',
        component: Boutiquedetails
    },
    { // 精品下单
        path: '/Boutique/BoutiqueOrder',
        name: 'BoutiqueOrder',
        component: BoutiqueOrder
    },
    { // 特产
        path: '/specialty/specialty',
        name: 'specialty',
        component: Specialty
    },
    { // 特产详情
        path: '/specialty/specialtydetails',
        name: 'specialtydetails',
        component: Specialtydetails
    },
    { // 特产订单
        path: '/specialty/orderdetails',
        name: 'orderdetails',
        component: Orderdetails
    },
    { // 公共服务
        path: '/Home/Service',
        name: 'Service',
        component: Service
    },

    { // 热门景区
        path: '/Onecardtour/popular',
        name: 'popular',
        component: Popular
    },
    { // 亲子游
        path: '/Onecardtour/qinzixing',
        name: 'qinzixing',
        component: qinzixing
    },
    { // 好好行
        path: '/Onecardtour/haohaoxing',
        name: 'haohaoxing',
        component: haohaoxing
    },
    { // 美食排行榜
        path: '/Onecardtour/foodlist',
        name: 'foodlist',
        component: Foodlist
    },
    { // 一卡游
        path: '/Onecardtour/Onecardtour',
        name: 'Onecardtour',
        component: Onecardtour
    },
    { // 一卡游详情
        path: '/Onecardtour/Onecardtourdetails',
        name: 'Onecardtourdetails',
        component: Onecardtourdetails
    },
    { // 通用组件
        path: '/Onecardtour/list',
        name: 'list',
        component: list
    },
    { // 景区天气详情
        path: '/weather/weather',
        name: 'weather',
        component: weather

    },
    { // 景区天气
        path: '/weather/weatherdetails',
        name: 'weatherdetails',
        component: weatherdetails
    },
    { // 订单结果页
        path: '/"Home/Result"',
        name: 'Result',
        component: Result
    },
    { // 登录页
        path: '/Login/passwordlogin',
        name: 'passwordlogin',
        component: Passwordlogin
    },
    { // 登录页
        path: '/Login/phonelogin',
        name: 'phonelogin',
        component: Phonelogin
    },
    { // 订单综合
        path: '/Scenic/Ordersynthesis',
        name: 'Ordersynthesis',
        component: Ordersynthesis,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 文艺演出订单
        path: '/Scenic/Activityorder',
        name: 'Activityorder',
        component: Activityorder,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 订单综合
        path: '/Scenic/Highqualityline',
        name: 'Highqualityline',
        component: Highqualityline,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },

    { // 酒店订单
        path: '/Scenic/Hotelorderpage',
        name: 'Hotelorderpage',
        component: Hotelorderpage,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 特产订单
        path: '/Scenic/Specialorder',
        name: 'Specialorder',
        component: Specialorder,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 我的收益
        path: '/Income/Income',
        name: 'Income',
        component: Income,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 我的收益详情
        path: '/Income/IncomeDetail',
        name: 'IncomeDetail',
        component: IncomeDetail
    },
    { // 身份认证
        path: '/Authentication/Authentication',
        name: 'Authentication',
        component: Authentication,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 提现
        path: '/Withdraw/Withdraw',
        name: 'Withdraw',
        component: Withdraw
    },
    { // 优惠券列表
        path: '/CouponList/CouponList',
        name: 'CouponList',
        component: CouponList
    },
    { // 优惠券购买
        path: '/CouponList/CouponOrder',
        name: 'CouponOrder',
        component: CouponOrder,
        meta: {
            requireLogin: true // 当前路由需要校验，不需要就不用写
        }
    },
    { // 绑定手机号
        path: '/Login/BindCellphone',
        name: 'bindCellphone',
        component: BindCellphone
    }
    ]
})
